package com.zp.base.mapper;

import com.zp.base.api.entity.PriceList;
import com.zp.base.entity.bo.PriceListBo;
import com.zp.base.entity.vo.PriceListVo;
import com.zp.common.myBatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 价表Mapper接口
 *
 * @author zhang peng
 * @date 2023-01-05
 */
public interface PriceListMapper extends BaseMapperPlus<PriceListMapper, PriceList, PriceListVo> {

    /**
     * 启用修改停止时间
     *
     * @param priceList
     * @return
     */
    int updatePriceEnable (PriceList priceList);

    /**
     * 当前价表自动补全
     *
     * @param bo
     * @return
     */
    List<PriceListVo> getCurrentPriceList (PriceListBo bo);

    /**
     * 获取诊疗项目已对照的价表
     *
     * @param bo
     * @return
     */
    List<PriceListVo> selectContrastExist (PriceListBo bo);
}
